//
//  AppDelegate.m
//  ConvertLanguage
//
//  Created by Burn on 2019/4/17.
//  Copyright © 2019 menksoft. All rights reserved.
//

#import "AppDelegate.h"
#import "MainTabBarController.h"
#import "MainNavigationController.h"

#import "OneViewController.h"
#import "OneMViewController.h"
#import "SecondViewController.h"
#import "SeconMViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    
    MainTabBarController *mainTabbar = [[MainTabBarController alloc]init];
    
    OneViewController *one = [[OneViewController alloc]init];
    SecondViewController *second = [[SecondViewController alloc]init];
    
    MainNavigationController *oneNav = [[MainNavigationController alloc]initWithRootViewController:one];
    MainNavigationController *seconNav = [[MainNavigationController alloc]initWithRootViewController:second];
    
    [mainTabbar addChildViewController:oneNav];
    [mainTabbar addChildViewController:seconNav];
    
    self.window.rootViewController = mainTabbar;
    [self.window makeKeyAndVisible];
    
    return YES;
}





@end
